package com.yunxiao.cloud.common.exception;

/**
 * @description: BusinessParamCheckingException
 * @date: 2019/12/16 14:32
 * @author: yunxiao
 * @version: 1.0
 */
public class BusinessParamCheckingException extends Exception {

    private static final long serialVersionUID = -4074311278072463701L;
    private final String code;
    private final String reason;

    public BusinessParamCheckingException(String code, String reason) {
        super(reason);
        this.code = code;
        this.reason = reason;
    }

    public BusinessParamCheckingException(String code, String reason, Throwable throwable) {
        super(reason, throwable);
        this.code = code;
        this.reason = reason;
    }

    public String getCode() {
        return code;
    }

    public String getReason() {
        return reason;
    }

}
